package com.hckjsec.cloud.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.cloud.mapper.AppletsPublicParamMapper;
import com.hckjsec.cloud.domain.AppletsPublicParam;
import com.hckjsec.cloud.service.IAppletsPublicParamService;

/**
 * 小程序用户参数配置Service业务层处理
 * 
 * @author cyt
 * @date 2021-08-19
 */
@Service
public class AppletsPublicParamServiceImpl implements IAppletsPublicParamService 
{
    @Autowired
    private AppletsPublicParamMapper appletsPublicParamMapper;

    /**
     * 查询小程序用户参数配置
     * 
     * @param paramId 小程序用户参数配置ID
     * @return 小程序用户参数配置
     */
    @Override
    public AppletsPublicParam selectAppletsPublicParamById(Long paramId)
    {
        return appletsPublicParamMapper.selectAppletsPublicParamById(paramId);
    }

    /**
     * 查询小程序用户参数配置列表
     * 
     * @param appletsPublicParam 小程序用户参数配置
     * @return 小程序用户参数配置
     */
    @Override
    public List<AppletsPublicParam> selectAppletsPublicParamList(AppletsPublicParam appletsPublicParam)
    {
        return appletsPublicParamMapper.selectAppletsPublicParamList(appletsPublicParam);
    }

    /**
     * 新增小程序用户参数配置
     * 
     * @param appletsPublicParam 小程序用户参数配置
     * @return 结果
     */
    @Override
    public int insertAppletsPublicParam(AppletsPublicParam appletsPublicParam)
    {
        return appletsPublicParamMapper.insertAppletsPublicParam(appletsPublicParam);
    }

    /**
     * 修改小程序用户参数配置
     * 
     * @param appletsPublicParam 小程序用户参数配置
     * @return 结果
     */
    @Override
    public int updateAppletsPublicParam(AppletsPublicParam appletsPublicParam)
    {
        return appletsPublicParamMapper.updateAppletsPublicParam(appletsPublicParam);
    }

    /**
     * 批量删除小程序用户参数配置
     * 
     * @param paramIds 需要删除的小程序用户参数配置ID
     * @return 结果
     */
    @Override
    public int deleteAppletsPublicParamByIds(Long[] paramIds)
    {
        return appletsPublicParamMapper.deleteAppletsPublicParamByIds(paramIds);
    }

    /**
     * 删除小程序用户参数配置信息
     * 
     * @param paramId 小程序用户参数配置ID
     * @return 结果
     */
    @Override
    public int deleteAppletsPublicParamById(Long paramId)
    {
        return appletsPublicParamMapper.deleteAppletsPublicParamById(paramId);
    }

    /**
     * 根据用户编号和部门id删除
     *
     * @param appletsPublicParam 小程序用户参数配置
     * @return 结果
     */
    @Override
    public int deleteAppletsPublicParamByParamType(AppletsPublicParam appletsPublicParam) {
        return appletsPublicParamMapper.deleteAppletsPublicParamByParamType(appletsPublicParam);
    }
}
